<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/view/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网上报名-合肥猎头网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${contextPath}/view/css/user.css"
    type="text/css" media="all" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript">
<!--
    function editA(managerId) {
        document.getElementById("eid").value = managerId;
        return true;
    }
    function deleteA(managerId) {

        if (!confirm("确定要删除该用户吗？")) {
            return false;
        }
        document.getElementById("eid").value = managerId;
        return true;
    }
//-->
</script>
</head>
<body>

    <%@include file="/view/adminMenu.jsp"%>

    <div class="midBox">
        <div class="midTitle">用户信息检索</div>
        <div class="cnt">

            <table width="100%" border="0" cellpadding="0" cellspacing="1"
                bgcolor="#E1E1E1">
                <tr>
                    <td height="32" align="left" bgcolor="#FFFFFF" valign="middle"
                        style="padding-left: 10px;"><b><span
                            style="color: #666666">用户信息检索</span></b></td>
                </tr>
                <form:form name="managerListForm" method="post"
                    action="${contextPath}/managerList.action"
                    commandName="ManagerListCommand">
                    <form:hidden path="eid" />
                    <tr bgcolor="#FFFFFF">
                        <td valign="top" align="center" height="25"
                            style="padding-top: 5px;">
                            <table width="95%" border="0" cellpadding="4" cellspacing="0"
                                bgcolor="#E1E1E1">
                                <tr bgcolor="#ffffff">
                                    <td style="text-align: right; width: 10%;">用户账号：</td>
                                    <td style="text-align: left; width: 15%"><form:input
                                            path="managerName" maxlength="32" size="15"
                                            cssClass="bbsInput_short" /></td>
                                </tr>
                                <tr bgcolor="#ffffff">
                                    <td style="text-align: center; width: 15%" colspan="2"><input
                                        type="submit" value="筛选" name="btnSearch" />&nbsp;&nbsp;<input
                                        type="submit" value="追加" name="btnAdd" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                        <td colspan="2" valign="top" align="center"
                            style="padding-top: 5px; padding-bottom: 5px;">
                            <table width="60%" border="0" cellpadding="4" cellspacing="1"
                                bgcolor="#E1E1E1">
                                <tr bgcolor="#f7f7f7">
                                    <th width="20%" nowrap="nowrap">序号</th>
                                    <th width="60%" nowrap="nowrap">用户账号</th>
                                   <!-- <th style="width: 5%;" nowrap="nowrap">用户权限</th>-->
                                </tr>
                                <c:forEach items="${ManagerListCommand.result}" var="manager"
                                    varStatus="status">
                                    <tr bgcolor="#ffffff">
                                        <td style="text-align: right" nowrap="nowrap">${status.index + 1}</td>
                                        <td>${manager.administratorId}</td>
                                        <td style="text-align: center" nowrap="nowrap"><input
                                            type="submit" value="修改" name="actionEditA"
                                            onclick="return editA('${manager.id}')" />&nbsp;<input
                                            type="submit" value="删除" name="actionDeleteA"
                                            onclick="return deleteA('${manager.id}');" /></td>
                                    </tr>
                                </c:forEach>
                            </table>
                        </td>
                    </tr>
                </form:form>
            </table>
        </div>
    </div>
    <%@include file="/view/footer.jsp"%>
</body>
</html>